package 设计模式.行为型模式.责任链;

import java.util.Map;

public class CacheHandler extends AbstractHandler{
     @Override
     public void handle(Map<String,Object> request) {
   	  System.out.println("已将当前请求转存⾄Redis缓存");
   	  if(this.getNext() != null){
   	  	this.getNext().handle(request);
	  }else{
   	  	throw new RuntimeException("请求没有被送达ProceedHandler");
   	  }
     }
}